package com.yic.module.wms.controller.admin.receiveapply.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yic.framework.excel.core.annotations.DictFormat;
import com.yic.framework.excel.core.convert.DictConvert;


/**
 * 领料申请单 Excel VO
 *
 * @author 系统管理员
 */
@Data
public class ReceiveApplyExcelVO {

    @ExcelProperty("序号")
    private Long id;

    @ExcelProperty("申请单号")
    private String code;

    @ExcelProperty("工厂")
    private Long factoryId;

    @ExcelProperty("生产车间")
    private Long workshopId;

    @ExcelProperty("工作中心")
    private Long centerId;

    @ExcelProperty("生产计划")
    private Long planId;

    @ExcelProperty("生产工单")
    private Long moId;

    @ExcelProperty("产品信息")
    private Long itemId;

    @ExcelProperty("产品仓储信息")
    private Long itemWarehouseId;

    @ExcelProperty("配送位置")
    private String address;

    @ExcelProperty("需求时间")
    private LocalDateTime demandTime;

    @ExcelProperty(value = "领料方式", converter = DictConvert.class)
    @DictFormat("wms_receive_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer applyType;

    @ExcelProperty("领料套数")
    private Integer applyCover;

    @ExcelProperty("领料数量")
    private BigDecimal applyAmount;

    @ExcelProperty("实际数量")
    private BigDecimal realAmount;

    @ExcelProperty("单位")
    private Long unitId;

    @ExcelProperty("仓库")
    private Long warehouseId;

    @ExcelProperty("库区")
    private Long areaId;

    @ExcelProperty("库位")
    private Long locationId;

    @ExcelProperty("制单人")
    private Long userId;

    @ExcelProperty("制单部门")
    private Long deptId;

    @ExcelProperty("处理人")
    private Long handleUserId;

    @ExcelProperty("处理时间")
    private LocalDateTime handleTime;

    @ExcelProperty("发料人")
    private Long sendUserId;

    @ExcelProperty("发料时间")
    private LocalDateTime sendTime;

    @ExcelProperty("确认人")
    private String confirmUserId;

    @ExcelProperty("确认时间")
    private LocalDateTime confirmTime;

    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("wms_receive_apply_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer status;

    @ExcelProperty("批次号")
    private String batchNo;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("说明")
    private String description;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
